package com.hzit.bj1804.dianservice.dao;

import com.hzit.bj1804.dian.entity.Productcategory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ProductcategoryDAO {
    int deleteByPrimaryKey(Integer categoryid);

    int insert(Productcategory record);

    int insertSelective(Productcategory record);
    //查询所有
    List<Productcategory> selectAllProductcategory();
    //根据ID查询
    List<Productcategory> selectByPrimaryByid(Integer categoryid);
    Productcategory selectByPrimaryKey(Integer categoryid);
    //根据类别名模糊查询
    List<Productcategory> selectByProductcategory(@Param("categoryname") String categoryname);
    int updateByPrimaryKeySelective(Productcategory record);

    int updateByPrimaryKey(Productcategory record);
}